<template>
    <div class="my">
        <div>my page</div>
        <div>
            <button @click="todetail">subpage</button>
        </div>
    </div>
</template>
<script>
export default {
    name: "home",
    components: {},
    data: function () {
        return {};
    },
    mounted: function () {
        console.log("my  加载完毕");
    },
    methods: {
        todetail: function () {
            this.$router.push({ name: "detail", query: {} });
        },
    },
};
</script>
<style></style>
